Skip to main content
Cancels an order for the authenticated merchant. This is the server-to-server form of Storefront cancel order: the same validation, the same terminal status, and the same fulfillment interrupt. Fire spark updates the order and fulfillment statuses, stops a running fulfillment workflow when one is in progress, and notifies connected integrations.
Requires an access token with the orders:write scope. See Token to obtain a token.
The resulting status follows whether payment has been captured: Unpaid tenders are voided, so payment_status becomes CANCELLED. Captured tenders are refunded, so payment_status becomes REFUNDED. payment_status itself is derived from the tenders.
The fulfillment next-states restriction is unchanged. A workflow advance to VOIDED stays refused when VOIDED is not among the current node’s next states. Cancel selects VOIDED or REVERSED from the capture check above.
Cancel is rejected once the order is fulfilled. Refund a fulfilled order from the channel that placed it.

Path parameters

Request

No body. The order id is the path parameter.

Response

Returns 200 with the cancelled order in data.

Error responses